package org.itzixi.service;

import org.itzixi.pojo.bo.NewFriendRequestBO;
import org.itzixi.pojo.netty.ChatMsg;
import org.itzixi.utils.PagedGridResult;


public interface ChatMessageService {
    /**
     * 保存聊天消息到数据库
     * @param chatMsg
     */
    public void saveMsg(ChatMsg chatMsg);

    /**
     * 查询聊天消息列表
     * @param senderId
     * @param receiverId
     * @param page
     * @param pageSize
     * @return
     */
    public PagedGridResult queryChatMsgList(String senderId,
                                        String receiverId,
                                        Integer page,
                                        Integer pageSize);

    /**
     * 更新语音消息为已读
     * @param msgId
     */
    public void updateMsgSignRead(String msgId);
}
